package com.hoo.entity.flow;

import java.util.Date;

import org.apache.ibatis.type.Alias;

import com.hoo.util.DateUtils;
import com.hoo.common.constant.Constant;

@Alias("flowUserAction")
public class FlowUserAction {
    private Integer id;

    private Integer userId;

    private String ip;

    private Date addTime;

    private int type;

    private String remark;

    private String addTimeStr;

    public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getAddTimeStr() {
		return addTimeStr;
	}

	public void setAddTimeStr(String addTimeStr) {
		this.addTimeStr = addTimeStr;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
        this.addTime = addTime;
        this.addTimeStr = addTime != null ? DateUtils.getDateString(addTime, Constant.DATE_FORMAT_LONG_ONE) : "";
    }
}